package com.aaa.mrcai.service.impl;

import com.aaa.mrcai.mapper.BigPieMapper;
import com.aaa.mrcai.pojo.vo.BigPie;
import com.aaa.mrcai.result.AjaxResult;
import com.aaa.mrcai.service.BigPieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Demo class
 *
 * @Author: Wang
 * @Date: Created in 22:03 2021/12/22
 */
@Service
public class BigPieServiceImpl implements BigPieService {
    @Autowired
    private BigPieMapper bigPieMapper;
    @Override
    public AjaxResult listOnePie() {
        List<BigPie> bigPies = bigPieMapper.listOnePie();
        return AjaxResult.success(bigPies);
    }
}
